package com.zhuangjie.mvc.ws.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.web.socket.WebSocketSession;

/**
 * WSMessage会话信息
 *
 * @author zhuangjie
 * @date 2024/01/18
 */
@Data
@AllArgsConstructor
public class WSMessageSessionInfo {
    private String serviceId;
    private WebSocketSession session;

    public Long getSessionIdForLong() {
        return Long.valueOf(session.getId());
    }

}
